#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include "head.h"
#define T 95
int main()
{
    int n;
    char symbol;
    char string[T][N]={
                        "2.55*7.1+2.45*7.1",
                        "777*9+1111*3",
                        "0.8*(15.5-(3.21+5.79))",
                        "(31.8+3.2*4)/5",
                        "31.5*4/(6+3)",
                        "0.64*25*7.8+2.2",
                        "2/2.5+2.5/2",
                        "194-64.8/1.8*0.9",
                        "36.72/4.25*9.9",
                        "5180-705*6",
                        "24/2.4-2.5*0.8",
                        "(4121+2389)/7",
                        "671*15-974",
                        "469*12+1492",
                        "405*(3213-3189)",
                        "3.416/(0.016*35)",
                        "0.8*((10-6.76)/1.2)",
                        "19.4*6.1*2.3",
                        "5.67*0.2-0.62",
                        "18.1*0.92+3.93",
                        "0.0430.24+0.875",
                        "0.4*0.7*0.25",
                        "0.75*102",
                        "100-56.23",
                        "0.78+5.436+1",
                        "4.07*0.86+9.125",
                        "89+124+11+26+48",
                        "875-147-23",
                        "25*125*40*8",
                        "147*8+8*53",
                        "125*64",
                        "0.9+1.08+0.92+0.1",
                        "89+124+11+26+48",
                        "875-147-23",
                        "147*8+8*53",
                        "125*64",
                        "280+840/24*5",
                        "85*(95-1440/24)",
                        "58870/(105+20*2)",
                        "80400-(4300+870/15)",
                        "1437*27+27*563",
                        "81432/(13*52+78)",
                        "125*(33-1)",
                        "37.4-(8.6+7.24-6.6)",
                        "156*107-7729",
                        "37.85-(7.85+6.4)",
                        "287*5+96990/318",
                        "1554/((72-58)*3)",
                        "2800/100+789",
                        "(947-599)+76*64",
                        "36*(913-276/23)",
                        "(93+25*21)*9",
                        "507/13*63+498",
                        "723-(521+504)/25",
                        "384/12+23*371",
                        "(39-21)*(396/6)",
                        "156*((17.7-7.2)/3)",
                        "(37.85-(7.85+6.4))*30",
                        "28*(5+969.9/318)",
                        "81/((72-54)*9)",
                        "57*12-560/35",
                        "848-640/16*12",
                        "960/(1500-32*45)",
                        "(192-(54+38))*67",
                        "800-981/9",
                        "(125+275)/8",
                        "25*(187-143)",
                        "392/(45-38)",
                        "450/(103-94)",
                        "530+120-250",
                        "864/8+48",
                        "280+840/24*5",
                        "85*(95-1440/24)",
                        "58870/(105+20*2)",
                        "80400-(4300+870/15)",
                        "1437*27+27*563",
                        "81432/(13*52+78)",
                        "125*(33-1)",
                        "37.4-(8.6+7.24-6.6)",
                        "1554/((72-58)*3)",
                        "(947-599)+76*64",
                        "36*(913-276/23)",
                        "(93+25*21)*9",
                        "507/13*63+498",
                        "723-(521+504)/25",
                        "5.384/12+23*371",
                        "(39-21)*(396/6)",
                        "156*((17.7-7.2)/3)",
                        "(37.85-(7.85+6.4))*30",
                        "28*(5+969.9/318)",
                        "81/((72-54)*9)",
                        "57*12-560/35",
                        "848-640/16*12",
                        "960/(1500-32*45)",
                        "(192-(54+38))*67",
                    };
    double answer;
    printf("                                  calculator\n");
    printf("                                                                         by dack");
    printf("================================================================================\n");
    printf("Attention : If you input the number of decimal , and more than 6 decimal places , the program will keep 6 decimal places for you !\n\n");
    for(n=0;n<T;n++)
    {
        answer=handle(string[n]);
        printf("The %.3d formula  = %9.3lf .\n",n+1,answer);
    }
    return 0;
}
